www.gusucode.com > Java课程设计案例精编光盘源码程序 > Java课程设计案例精编光盘源码程序\www.gusucode.com\超市管理系统\UML_gaokai\src\uml_gaokai\新建 文本文档.txt

    package uml_gaokai;

import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */

public class AdminWindow extends JDialog {
  private JPanel panel1 = new JPanel();
  private XYLayout xYLayout1 = new XYLayout();
  private JButton jButton1 = new JButton();
  private JButton jButton2 = new JButton();
  private JButton jButton3 = new JButton();
  private JButton jButton4 = new JButton();
  private JButton jButton5 = new JButton();

  public AdminWindow(Frame frame, String title, boolean modal) {
    super(frame, title, modal);
    try {
      jbInit();
      pack();
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }

  public AdminWindow() {
    this(null, "", false);
  }
  private void jbInit() throws Exception {
    panel1.setLayout(xYLayout1);
    jButton1.setText("顾客登录");
    jButton2.setText("采购员登录");
    jButton3.setText("销售员登录");
    jButton4.setText("经理登录");
    jButton5.setText("用户管理");
    this.getContentPane().add(panel1, BorderLayout.CENTER);
    panel1.add(jButton1, new XYConstraints(0, 0, -1, 33));
    panel1.add(jButton2, new XYConstraints(83, 1, 100, 32));
    panel1.add(jButton3,  new XYConstraints(183, 0, 98, 33));
    panel1.add(jButton4,    new XYConstraints(281, 1, 100, 33));
    panel1.add(jButton5,    new XYConstraints(375, 2, 92, 32));
  }
}